package com.example.week2.mvp.presenter;

import com.example.mylibrary.mvp.presenter.BasePresenter;
import com.example.week2.mvp.contact.Contact;
import com.example.week2.mvp.model.Model;
import com.example.week2.mvp.view.RegisterActivity;

public class Presenter extends BasePresenter<Model, RegisterActivity>{
    public Presenter(Model mModel, RegisterActivity mView) {
        super(mModel, mView);
    }
    public void register(){
        mModel.register(mView.getusername(),mView.getPwd(),"http://172.81.227.127:8055/swagger-ui.html#!/user45controller/registerUserUsingPOST");
        mView.goLogin();
    }
}
